#ifndef _WIN32
 #include	"Network/ZiaServerUnix/ZiaServerUnix.h"
#else
 #include	"Network/ZiaServerWin/ZiaServerWin.h"
#endif // !_WIN32
#include	"XmlParser/XmlParser.hpp"
#include	<fstream>
#include	"parser/RequestParser.hpp"
#include	"CrossThread/ManipList.hpp"
#include	<utility>
#include	"traitThread/traitThread.hpp"

using namespace	std;

ManipList<std::pair<std::string, int> >		msgList;

int	main()
{
#ifndef _WIN32
  ZiaServerUnix	test;
#else
  ZiaServerWin	test;
#endif
  myThread		var;
  Thread::create(&var, TraitLoop, NULL);
  test.LaunchServ();
  
  Thread::waitSingle(&var);
  
  /*XmlParser		conf;WORK WELL
    
    cout << conf.parseFile() << endl;
    conf.setFile("Test.txt");
    cout << conf.getFile().c_str() << endl;
    cout << conf.parseFile() << endl;*/
  
  return (0);
}
